<table>
  <tr>  
        <th>ID</th>
        <th>Application Name</th>
        <th>Closes On</th>
        <th>Notifies On</th>
        <th>Score</th>
        <th>Actions</th>
  </tr>

<% for judgment in @judgments %>
    <tr>                          
        <td><%= judgment.submission.id %></td>
        <td><%= judgment.submission.cycle.name %></td>
        <td><%= judgment.submission.cycle.close_on %></td>   
        <td><%= judgment.submission.cycle.notify_on %></td>   
        <td><%= judgment.score %></td>
        
        <td>
          <%= link_to "Judge Application", :controller => "judgment", :action => "edit", :id => judgment %> 
            
          <% if judgment.score != nil && judgment.score != "" && judgment.score != "0" && judgment.score != "-1"-%>
            <%= link_to "Complete", :controller => "judgment", :action => "complete", :id => judgment %>    
          <% end -%>
        </td>        
    </tr>

<% end %>
</table>
